package com.summer.data.dialect.gauss;

import com.summer.data.dialect.Dialect;
import com.summer.data.dialect.DialectCenter;
import com.summer.data.dialect.DialectRouter;

/**
 * @author 345480567@qq.com
 */

public class GaussDialectRouter implements DialectRouter {

    public static final String PROD_NAME = "DM";

    private static DialectRouter instance = new GaussDialectRouter();

    public static void reg() {
        DialectCenter.regDialect(PROD_NAME, instance);
    }

    private static Dialect defaultDialect = new GaussDialect();

    @Override
    public String getName() {
        return PROD_NAME;
    }

    @Override
    public int score() {
        return 0;
    }

    @Override
    public Dialect route(int version) {
        return defaultDialect;
    }

}
